package com.sm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class AttendanceRec extends BaseEntity {
    private Integer id;
    private Date date;
    private Integer usercount;
    private Integer atcount;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GTM+8")
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getUsercount() {
        return usercount;
    }

    public void setUsercount(Integer usercount) {
        this.usercount = usercount;
    }

    public Integer getAtcount() {
        return atcount;
    }

    public void setAtcount(Integer atcount) {
        this.atcount = atcount;
    }

    @Override
    public String toString() {
        return "AttendanceRec{" +
                "id=" + id +
                ", date=" + date +
                ", usercount=" + usercount +
                ", atcount=" + atcount +
                '}';
    }
}
